function msgbox(msg, level){
  var title = 'Information';
  if(level == 'warn'){
    title = 'Warning';
  }
  
  $('<p><br/>' + msg + '<br/><br/></p>').dialog({
    modal: true,
    title: title,
    width: 330,
    buttons: [
      {
        text: "OK",
        class: 'green button',
        click: function() {
          $(this).dialog("close")
        }
      }
    ]
  });
}
